<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>饼干点击者</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
  </head>
  <body>
    <div class="game-container">
      <div class="game-header">
        <h1 class="game-title">饼干大师</h1>
        <div class="stats-container">
          <div class="stat-item" title="点击查看详情">
            <span class="stat-label">饼干数量</span>
            <span class="stat-value" id="cookie-count">0</span>
            <div class="stats-detail">
              总计获得: <span id="total-cookies">0</span><br>
              点击次数: <span id="total-clicks">0</span><br>
              最大连击: <span id="max-combo">0</span>
            </div>
          </div>
          <div class="stat-item" title="点击查看详情">
            <span class="stat-label">每秒产量</span>
            <span class="stat-value" id="cookies-per-second">0</span>
            <div class="stats-detail">
              自动点击器: <span id="cursor-production">0</span>/秒<br>
              饼干奶奶: <span id="grandma-production">0</span>/秒
            </div>
          </div>
          <div class="stat-item" title="点击查看详情">
            <span class="stat-label">点击力量</span>
            <span class="stat-value" id="click-power">1</span>
            <div class="stats-detail">
              基础点击: 1<br>
              升级加成: <span id="click-bonus">0</span>
            </div>
          </div>
        </div>
      </div>
      
      <div class="main-content">
        <div class="cookie-section">
          <div class="cookie-wrapper">
            <div class="cookie-rays"></div>
            <div class="cookie-container">
              <div class="cookie-shadow"></div>
              <div class="cookie-click-area"></div>
              <img src="https://orteil.dashnet.org/cookieclicker/img/perfectCookie.png" 
                   id="cookie" 
                   alt="Cookie"
                   class="cookie-image"
                   draggable="false">
              <div class="cookie-shine"></div>
              <div class="combo-counter" id="combo-counter">x1</div>
              <div class="cookie-power" id="cookie-power"></div>
            </div>
            <div id="particles-container"></div>
          </div>
        </div>

        <div class="store-section">
          <div class="store-header">
            <h2>商店</h2>
          </div>
          <div class="store-items">
            <div class="store-item" id="cursor-container">
              <div class="item-icon cursor-icon"></div>
              <div class="item-info">
                <h3 class="item-name">自动点击器</h3>
                <button id="cursor-upgrade" class="upgrade-button">
                  <span class="price">价格: 15</span>
                </button>
                <div class="item-stats">
                  <span class="owned">拥有: <span id="cursor-count">0</span></span>
                  <span class="production">每个产量: 0.1/秒</span>
                </div>
              </div>
            </div>
            
            <div class="store-item" id="grandma-container">
              <div class="item-icon grandma-icon"></div>
              <div class="item-info">
                <h3 class="item-name">饼干奶奶</h3>
                <button id="grandma-upgrade" class="upgrade-button">
                  <span class="price">价格: 100</span>
                </button>
                <div class="item-stats">
                  <span class="owned">拥有: <span id="grandma-count">0</span></span>
                  <span class="production">每个产量: 1.0/秒</span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="achievement-container" id="achievement-container"></div>
    
    <script src="game.js"></script>
  </body>
</html> 